package com.escafoide.smm;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;

public class Init extends Activity {	
	ImageView start_img;
	Animation start_anim;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        start_anim = AnimationUtils.loadAnimation(this, R.anim.alpha);
        start_anim.setFillAfter(true);
		start_anim.setAnimationListener(new AnimationListener() {

			public void onAnimationStart(Animation animation) {
			}

			public void onAnimationRepeat(Animation animation) {
			}

			public void onAnimationEnd(Animation animation) {
				startActivity(new Intent(Init.this,
						Login.class));
				finish();
			}
		});
		start_img = (ImageView) findViewById(R.id.start_app_img);
		start_img.setVisibility(View.VISIBLE);
		start_img.startAnimation(start_anim);
        
    }
}